home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
UNLINK.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-08-05
|
429 b
|
22 lines
/* unlink.c, from page 372 of Turbo C Bible */
#include <stdio.h>
#include <io.h>
main (int argc, char **argv)
{
if (argc < 2)
{
printf ("Usage: %s <pathname>\n", argv [0]);
}
else
{
printf ("File %s ", argv [1]);
if (unlink (argv [1]) != 0)
{
perror ("unlink failed");
}
else
{
printf ("deleted\n");
}
}
}